<template>
	<view class="page-content">
		<view class="title">{{filterNull(messageDetail.title)}}</view>
		<view class="time">{{filterNull(messageDetail.dateShow)}}</view>
		<view class="content">
			<view>
				<rich-text :nodes="messageDetail.content"></rich-text>
			</view>

		</view>
	</view>
</template>

<script>
	import {
		messageNoticedetail
	} from '../../../common/api.js';

	export default {
		data() {
			return {
				id: '',
				messageDetail: null
			}
		},
		methods: {
			getData() {
				messageNoticedetail({
					params: {
						id: this.id
					}
				}).then(res => {
					this.messageDetail = res;
				})
			}
		},
		onLoad(op) {
			this.id = op.id;
			this.getData();
		}
	}
</script>

<style lang="scss" scoped>
	.page-content{
		background-color: $white;
	}
	
	.title {
		font-family: PingFang-SC-Bold;
		font-weight: bold;
		font-size: 48upx;
		padding: 42upx 37upx 30upx;
	}

	.time {
		color: #A7A7A7;
		padding: 0 0 40upx;
		border-bottom: 1px solid #EFEFEF;
		margin: 0 37upx;
		font-size: 28upx;
	}

	.content {
		padding: 40upx 37upx;
	}

	.content view {
		font-size: 32upx;
		line-height: 60upx;
		font-family: PingFang-SC-Regular;
		font-weight: Regular;
		color: #333;
	}

	.b {
		color: #1573FF;
	}
</style>
